﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
using System.Collections;
using DTO;

namespace BUS
{
    public class KhachHangBUS
    {
        /*public void hienthidanhsach()
        {
            dskhachhang.DataSource = KhachHangDAO.GetKhachHangAll();
        }*/

        public static ArrayList LayDanhSach()
        {
            return KhachHangDAO.LayDanhSach();
        }
        public static KhachHangDTO LayThongTinKhachHang(String maKH)
        {
            return KhachHangDAO.LayThongTinKhachHang(maKH);
        }
        public static int CapNhatSoTienNo(String makh, float sotienno)
        {
            return KhachHangDAO.CapNhatSoTienNo(makh, sotienno);
        }
        public static int ThemKH(KhachHangDTO kh)
        {
            return KhachHangDAO.ThemKH(kh);
        }
        public static int XoaKH(KhachHangDTO kh)
        {
            return KhachHangDAO.XoaKH(kh);
        }
        public static int CapNhatKH(KhachHangDTO kh)
        {
            return KhachHangDAO.CapNhatKH(kh);
        }
    }
}
